package cn.stylefeng.guns.modular.ha.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.basic.entity.BasicCustomer;
import cn.stylefeng.guns.modular.ha.entity.HaApiDepartOrder;
import cn.stylefeng.guns.modular.ha.model.params.HaApiDepartOrderParam;
import cn.stylefeng.guns.modular.ha.model.result.HaApiDepartOrderResult;
import cn.stylefeng.guns.modular.rest.xlbapi.vo.SyncDepartOrderIby;
import cn.stylefeng.roses.core.reqres.response.ResponseData;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 同步发车单信息 服务类
 * </p>
 *
 * @author zhangzh
 * @since 2025-08-12
 */
public interface HaApiDepartOrderService extends IService<HaApiDepartOrder> {

    /**
     * 新增
     *
     * @author zhangzh
     * @Date 2025-08-12
     */
    void add(HaApiDepartOrderParam param);

    /**
     * 删除
     *
     * @author zhangzh
     * @Date 2025-08-12
     */
    void delete(HaApiDepartOrderParam param);

    /**
     * 更新
     *
     * @author zhangzh
     * @Date 2025-08-12
     */
    void update(HaApiDepartOrderParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author zhangzh
     * @Date 2025-08-12
     */
    HaApiDepartOrderResult findBySpec(HaApiDepartOrderParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author zhangzh
     * @Date 2025-08-12
     */
    List<HaApiDepartOrderResult> findListBySpec(HaApiDepartOrderParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author zhangzh
     * @Date 2025-08-12
     */
     LayuiPageInfo findPageBySpec(HaApiDepartOrderParam param, String condition);


    ResponseData syncDepartOrder(SyncDepartOrderIby syncDepartOrderIby, BasicCustomer basicCustomer);


}
